package com.sui.bigdata.sml.web.util;

/**
 * @author songhaicheng
 * @date 2019/11/7 14:58
 * @description
 * @reviewer
 */
public class Constants {

    public static final Long DEFAULT_USER_ID = 1L;
    public static final Integer TRYOUT_MLEAP_THREAD_NUM = 5;

    public static final String HIVE_TABLE_PARAM = "hive_table";
    public static final String HIVE_TABLE_PREFIX = "temp.";
    public static final String EMPTY_NODE_RESULT_CONTENT = "null";

    public static final String AZKABAN_SPARK_EXECUTOR_CLASS = "azkaban.spark.executor.class";
    public static final String AZKABAN_SPARK_EXECUTOR_CLASSPATH = "azkaban.spark.executor.classpath";
    public static final String AZKABAN_SPARK_ALGPATH = "azkaban.spark.algpath";
    public static final String AZKABAN_SPARKJOB_SMLPATH = "azkaban.sparkjob.smlpath";
    public static final String AZKABAN_SPARKJOB_ALGLOCALPATH = "azkaban.sparkjob.algLocalpath";
    public static final String AZKABAN_YARNUSER = "azkaban.yarnuser";

    public static final String KAFKA_BROKERS = "kafka.brokers";
    public static final String KAFKA_TOPIC = "kafka.topic";
    public static final String KAFKA_GROUP_ID = "kafka.group.id";
    public static final String KAFKA_POLL_TIMEOUT = "kafka.consumer.poll.timeout";
    public static final String KAFKA_AUTO_COMMIT = "kafka.consumer.auto.commit";
    public static final String KAFKA_CONCURRENCY = "kafka.consumer.concurrency";

    public static final String KUBE_NAMESPACE = "kube.namespace";
    public static final String KUBE_TF_IMAGE = "kube.tf.image";
    public static final String KUBE_SML_IMAGE = "kube.sml.image";
    public static final String KUBE_DEPLOYMENT_REPLICAS = "kube.deployment.replicas";
    public static final String KUBE_SML_READINESS_SECONDS_TIMEOUT = "kube.sml.readiness.seconds.timeout";
    public static final String KUBE_SML_LIVENESS_PROBE_SECONDS_PERIOD = "kube.sml.liveness.probe.seconds.period";
    public static final String KUBE_SML_LIVENESS_PROBE_FAILURE_THRESHOLD = "kube.sml.liveness.probe.failure.threshold";

    public static final String SERVING_URL_PREFIX = "serving.url.prefix";

}
